package utility_task

import (
	"context"
	"github.com/jakecoffman/cron"
)

type Job interface {
	Run()
	addJob(*cron.Cron) (int, error)
}

type JobExec interface {
	Exec(ctx context.Context, arg interface{}) error
}

func CallExec(ctx context.Context, e JobExec, arg interface{}) error {
	return e.Exec(ctx, arg)
}
